package com.site.wisdom_construction.entity.personnelModule;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.sql.Date;

/**
 * @Description  
 * @Author  DYF
 * @Date 2022-04-06 
 */
@ApiModel (value ="劳务工人文件库表实体类", description = "ContractWorkersDocument")
public class ContractWorkersDocument {
	/**
	 * 劳务工人文件库表ID
	 */
   	@ApiModelProperty(value = "劳务工人文件库表ID", name = "id")
	private Integer id;

	/**
	 * 项目ID
	 */
	@ApiModelProperty(value = "项目ID", name = "projectId")
	private Integer projectId;

	/**
	 * 工人ID
	 */
	@ApiModelProperty(value = "工人ID", name = "workerId")
	private Integer workerId;

	/**
	 * 文件名称
	 */
   	@ApiModelProperty(value = "文件名称", name = "documentName")
	private String documentName;

	/**
	 * 文件内容
	 */
   	@ApiModelProperty(value = "文件内容", name = "documentContent")
	private String documentContent;

	/**
	 * 上传时间
	 */
   	@ApiModelProperty(value = "上传时间", name = "uploadTime")
	@JsonFormat(timezone = "GMT+8", pattern ="yyyy-MM-dd")
	private Date uploadTime;

	public ContractWorkersDocument(Integer id, Integer projectId, Integer workerId, String documentName, String documentContent, Date uploadTime) {
		this.id = id;
		this.projectId = projectId;
		this.workerId = workerId;
		this.documentName = documentName;
		this.documentContent = documentContent;
		this.uploadTime = uploadTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getProjectId() {
		return projectId;
	}

	public void setProjectId(Integer projectId) {
		this.projectId = projectId;
	}

	public Integer getWorkerId() {
		return workerId;
	}

	public void setWorkerId(Integer workerId) {
		this.workerId = workerId;
	}

	public String getDocumentName() {
		return documentName;
	}

	public void setDocumentName(String documentName) {
		this.documentName = documentName;
	}

	public String getDocumentContent() {
		return documentContent;
	}

	public void setDocumentContent(String documentContent) {
		this.documentContent = documentContent;
	}

	public Date getUploadTime() {
		return uploadTime;
	}

	public void setUploadTime(Date uploadTime) {
		this.uploadTime = uploadTime;
	}

	@Override
	public String toString() {
		return "{" +
				"id=" + id +
				", projectId=" + projectId +
				", workerId=" + workerId +
				", documentName='" + documentName + '\'' +
				", documentContent='" + documentContent + '\'' +
				", uploadTime=" + uploadTime +
				'}';
	}
}
